<template>
	<div>
		<el-radio v-model="form[field.tableName]" label="1">推送</el-radio>
		<el-radio v-model="form[field.tableName]" label="0">不推送</el-radio>
	</div>
</template>
<script>
	import Vue from 'vue'
	import ElementUI from 'element-ui'
	Vue.use(ElementUI);
	export default {
		name:'is-push-checkbox',
		props:{
			value:{
				type:[Number,String,Boolean],
				default:false
			},
			field: {
				type: Object,
				required: true,
			},
			form:{
				type:Object,
				default:{}
			},
			push:'1',
			nopush:'2'
		},
		watch:{
			ispush(val){
				console.log(val)
			}
		},
		data(){
			return{
				ispush:this.form[this.field.tableName]
			}
		},
		methods:{
		},
		created(){	
			console.log(this.form[this.field.tableName])
		}
	}
</script>